
<button class="btn btn-primary" (click)="add()">添加</button>
<table class="table">
  <thead>
  <tr>
    <th scope="col">#</th>
    <th scope="col">标题</th>
    <th scope="col">描述</th>
    <th scope="col">图片</th>
    <th scope="col">链接地址</th>
    <th>操作</th>
  </tr>
  </thead>
  <tbody>
  <tr *ngFor="let c of cl;index as i">
    <td scope="row" >{{i+1}}</td>
 <td>{{c.title}}</td>
    <td>{{c.discription}}</td>
    <td>
    <img width="100px" height="100px" src="{{c.picurl}}" />

    </td>
    <td>{{c.contenturl}}</td>
    <td>
      <button class="btn btn-success" (click)="update(c.carouselid)" >修改</button>
      <button class="btn btn-danger" (click)="delete(c.carouselid)" >删除</button>

    </td>
  </tr>

  </tbody>
</table>

